package ${packageName}.service.${module}.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.cecil.generate.model.PageRequest;
import ${packageName}.domain.${module}.${table.className};
import ${packageName}.mapper.${module}.${table.className}Mapper;
import ${packageName}.service.${module}.${serviceClassName};
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

@Slf4j
@Service
public class ${fileName} extends ServiceImpl<${table.className}Mapper, ${table.className}> implements ${serviceClassName} {

    @Override
    public IPage<${table.className}> page(PageRequest<${table.className}, ${table.className}> pageRequest) {
        QueryWrapper<${table.className}> queryWrapper = pageRequest.getPage().buildWrapper();
        return baseMapper.selectPage(pageRequest.getPage(), queryWrapper);
    }

}